Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Use HtSP for storing plugins. #4687

Merged
merged 11 commits into from
Oct 26, 2024
Merged

Refactor: Use HtSP for storing plugins. #4687

merged 11 commits into from
Oct 26, 2024

Conversation

Rot127
Copy link
Member

@Rot127 Rot127 commented Oct 24, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

Refactor: Use HtSP for storing plugins.
This saves iterations when searching for a plugin of a given name. It also allows to save plugin configurations and data in hash table, all addressed by their name. Hence, usage is more streamlined.

Test plan

All green

Closing issues

...

This saves iterations when searching for a plugin of a given name.
It also allows to save plugin configurations and data in hash table,
all addressed by their name. Hence, usage is more streamlined.
If arch is passed on from another struct, NULL is an allowed invalid value.
@Rot127 Rot127 changed the title Plugin management Refactor: Use HtSP for storing plugins. Oct 24, 2024
@Rot127

This comment was marked as resolved.

Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite nice changes!

librz/util/list.c Show resolved Hide resolved
librz/main/rz-hash.c Show resolved Hide resolved
librz/main/rz-gg.c Show resolved Hide resolved
librz/egg/egg.c Outdated Show resolved Hide resolved
librz/egg/egg.c Outdated Show resolved Hide resolved
librz/core/cio.c Outdated Show resolved Hide resolved
librz/core/chash.c Outdated Show resolved Hide resolved
librz/core/cdebug.c Show resolved Hide resolved
librz/core/ccrypto.c Show resolved Hide resolved
librz/bp/bp_plugin.c Show resolved Hide resolved
Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few small nitpicks

librz/core/casm.c Show resolved Hide resolved
librz/core/cbin.c Show resolved Hide resolved
test/unit/test_list.c Show resolved Hide resolved
Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wargio take a look and lets merge this

@XVilka XVilka merged commit 30953d3 into dev Oct 26, 2024
48 checks passed
@XVilka XVilka deleted the plugin-management branch October 26, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants